package com.mdoya.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.mdoya.domain.Orders;
import com.mdoya.query.BaseQuery;
import com.mdoya.vo.OrderVo;

/**
 * @author mdoya
 * @version 1.0
 * @description:
 */
public interface OrderService {
    /**
     *  提交订单
     * @param orders
     * @return
     */
    Integer add(Orders orders);

    /**
     *  后台分页查询
     * @param baseQuery 分页参数
     * @return
     */
    IPage<OrderVo> selectPage(BaseQuery baseQuery);

    /**
     *  前端最新订单查询
     * @param baseQuery
     * @return
     */
    IPage<OrderVo> selectPageIndex(BaseQuery baseQuery);
}
